import { isDev, getRequest, postRequest } from '@/api';

const urlsObj = {};
if (isDev) {
  // 采购
  urlsObj.getPurchaseDetail = getRequest('invpurchasedetail');
  urlsObj.deletePurchase = getRequest('deleteinvpurchase');
  urlsObj.savePurchase = getRequest('saveinvpurchase');
} else {
  // 采购
  urlsObj.getPurchaseDetail = getRequest('cgInvoice/list/{orderNo}');
  urlsObj.deletePurchase = getRequest('cgInvoice/delete/{id}');
  urlsObj.savePurchase = postRequest('cgInvoice/save');
}

export default urlsObj;
